package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Psycho
 * @create 2022-05-02-11:33
 */
public interface AdminSensitiveService extends IService<WmSensitive> {


    /**
     * 敏感词的查询
     * @param dto
     * @return
     */
    public ResponseResult listSensitives(SensitiveDto dto);


    /**
     * 删除某个敏感词
     * @param id
     * @return
     */
    public ResponseResult deleteOneSensitive(Integer id);


    /**
     * 修改某个敏感词
     * @param adSensitive
     * @return
     */
    public ResponseResult updateOneSensitive(AdSensitive adSensitive);

    /**
     * 新增敏感词
     * @param adSensitive
     * @return
     */
    public ResponseResult saveOneSensitive(AdSensitive adSensitive);
}
